
all: x509  asn1 digesttest


x509: x509.c rsa.c asn1.c base64.c digest.c md5_digest.c sha1_digest.c sha256_digest.c utils.c
	gcc -g -o x509 x509.c rsa.c asn1.c base64.c digest.c md5_digest.c sha1_digest.c sha256_digest.c utils.c -lgmp

asn1: asn1.c base64.c
	gcc -g -o asn1 -DTEST_ASN1 asn1.c base64.c -lgmp

clean:
	rm -f x509  asn1 digesttest


digesttest :  digest.c md5_digest.c sha1_digest.c sha256_digest.c digest_test.c utils.c
	gcc -g -o digesttest  digest.c md5_digest.c sha1_digest.c sha256_digest.c digest_test.c utils.c
